package com.wm.person;

public class Employee extends Person{
    private String office;
    private double salary;
    private String hiredate;

    public String getOffice() {
        return office;
    }

    public void setOffice(String office) {
        this.office = office;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String getHiredate() {
        return hiredate;
    }

    public void setHiredate(String hiredate) {
        this.hiredate = hiredate;
    }

    public Employee() {
    }

    public Employee(String name, String address, String telphone,
                    String email, String office, double salary, String hiredate) {
        super(name, address, telphone, email);
        this.office = office;
        this.salary = salary;
        this.hiredate = hiredate;
    }
    public void show(){
        System.out.println("姓名:" + super.getName());
        System.out.println("地址:" + super.getAddress());
        System.out.println("电话号码:" + super.getTelphone());
        System.out.println("电子邮件:" + super.getEmail());
        System.out.println("办公室:" + this.getOffice());
        System.out.println("工资:" + this.getSalary());
        System.out.println("受雇日期:" + this.getHiredate());
    }
}
